mod config;
mod handlers;
mod models;
mod routes;
mod route_cores;
mod server;
pub mod WithAppState;
use server::Server;
use crate::route_cores::configure_app;

#[tokio::main]
async fn main(){
    let addr = "0.0.0.0:3004";
    let apps = configure_app().await;
    let server = Server::new(addr,apps).await.unwrap();
    println!("16行运行成功{}",addr);
     server.run().await.unwrap();
}

